﻿using Newtonsoft.Json;
using ZZDingTalkSDK.ZZDingTalkRequest.Common;
using ZZDingTalkSDK.ZZDingTalkResponse;
using ZZDingTalkSDK.ZZDingTalkResponse.common;

namespace ZZDingTalkSDK.ZZDingTalkRequest
{
    /// <summary>
    /// 获取应用access_token
    /// </summary>
    public class AccessTokenRequest : IZZDRequest<ZZDingTalkResponseContent<AccessTokenResponse>>
    {
        [JsonProperty("appkey")]
        public string? Appkey { get; set; }

        [JsonProperty("appsecret")]
        public string? Appsecret { get; set; }

        public string GetApiName()
        {
            return "/gettoken.json";
        }
    }
}